import Vue from 'vue'
import VueRouter from 'vue-router'
import Welcome from '@/views/Welcome'
import StudentInfoEntry from '@/views/manager/student/StudentInfoEntry'
import DepartmentInfo from '@/views/manager/department/DepartmentInfo'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Welcome',
    component: Welcome
  },
  {
    path: '/studentManager/studentInfoEntry',
    name: 'Student information entry',
    component: StudentInfoEntry
  },
  {
    path: '/studentManager/departmentInfo',
    name: 'Department information',
    component: DepartmentInfo
  }

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
